export default {
  namespaced: true,
  state: {
    id: 0,
    name: '',
    curUser: null,
    userList: [],
    userMap: {}
  },
  mutations: {
    updateId (state, id) {
      state.id = id
    },
    updateName (state, name) {
      state.name = name
    },
    updateCurUser (state, curUser) {
      state.curUser = curUser
    },
    updateUserList (state, userList) {
      state.userList = userList
    },
    updateUserMap (state, userMap) {
      state.userMap = userMap
    }
  }
}
